package com.example.day7.Presener;


import com.example.day7.Model.Bean;
import com.example.day7.Model.NetModel;
import com.example.day7.Model.ResultCallBack;
import com.example.day7.View.NetView;

public class NetPresener {

    public void initData(final NetView netView, int page) {
        NetModel netModel = new NetModel();
        netModel.initData(new ResultCallBack() {
            @Override
            public void getData(Bean bean) {
                netView.getData(bean);
            }
        }, page);
    }
}
